import { Behaviour } from "../engine/Behaviour";
import { Transform } from "../engine/Transform";
import { number } from "../engine/validators/number";
import { getGameObjectById } from "../engine";
import { Display } from "./Display";

export class ButtonClick extends Behaviour {

    onStart() {
        this.gameObject.onClick = () => {
            console.log(this.gameObject.id);
            getGameObjectById('UI_hintFrame_shop').getBehaviour(Display).IsActive=true;
            getGameObjectById('UI_hintFrame_shop_confirm').getBehaviour(Display).IsActive=true;
            getGameObjectById('UI_hintFrame_shop_cancel').getBehaviour(Display).IsActive=true;
            getGameObjectById('UI_money_decoration').getBehaviour(Display).IsActive=true;
            getGameObjectById('Text_Title_buy').getBehaviour(Display).IsActive=true;
            getGameObjectById('Text_confirm_buy').getBehaviour(Display).IsActive=true;

            
    }
    }

    onTick(duringTime: number) {
        


    }
}
